/* 
 * File:   serverResponse.h
 * Author: dojo
 *
 * Created on 20 maj 2010, 22:59
 */

#ifndef _SERVERRESPONSE_H
#define	_SERVERRESPONSE_H

#ifdef	__cplusplus
extern "C" {
#endif

    char * ResponseRegister(char * command, int *loginState);
    char * ResponseLogin(char * command, int *loginState);
    char * ResponsePassword(char * command);
    char * ResponseListMyPrivateMessages(int *loginState);                     
    char * ResponseListMyGroupMessages(char * command, int *loginState);
    char * ResponseListAllGroups(int *loginState);
    char * ResponseListMyGroups(int * loginState);
    char * ResponseGetSpecificPrivateMessage(char * command, int * loginState);
    char * ResponseGetSpecificGroupMessage(char * command, int * loginState);
    char * ResponseSpecificGroup(char * command, int * loginState);
    char * ResponseSpecificUserGroup(char * command, int * loginState);

    char * ResponseSetUserToGroup(char * command, int * loginState);
    char * ResponseSetNewGroup(char * command, int * loginState);
    char * ResponseModifyExistingGroup(char * command, int * loginState);
    char * ResponseSendMessage(char * command, int * loginState);
    char * ResponseListMyOwnMessages(int * loginState);
    char * ResponseGetMyOwnSpecificMessage(char * command, int * loginState);
    char * ResponseDeleteMyOwnSpecificMessage(char * command, int * loginState);

    char * GetServerResponse(char *command, int * loginState, int * responseNeeded);
    int SetServerConnection(char * connectionString);


#ifdef	__cplusplus
}
#endif

#endif	/* _SERVERRESPONSE_H */

